<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/sys_var.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">sys_var.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;map&gt;</code><br />
<code>#include &quot;<a class="el" href="../../dc/d7c/sys__var_8hpp_source.html">sys_var.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
sys_var.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d4d/sys__var_8cpp__incl.png" border="0" usemap="#asrc_2sys__var_8cpp" alt=""/></div>
<map name="asrc_2sys__var_8cpp" id="asrc_2sys__var_8cpp">
<area shape="rect" title=" " alt="" coords="18,5,132,32"/>
<area shape="rect" title=" " alt="" coords="5,155,52,181"/>
<area shape="poly" title=" " alt="" coords="74,33,40,140,35,139,69,32"/>
<area shape="rect" href="../../dc/d7c/sys__var_8hpp.html" title=" " alt="" coords="74,80,167,107"/>
<area shape="poly" title=" " alt="" coords="85,31,107,65,102,68,81,34"/>
<area shape="poly" title=" " alt="" coords="106,109,58,147,54,143,103,105"/>
<area shape="rect" href="../../da/dc0/cconffile_8hpp.html" title=" " alt="" coords="76,155,170,181"/>
<area shape="poly" title=" " alt="" coords="124,107,125,139,119,139,118,107"/>
<area shape="rect" title=" " alt="" coords="194,155,263,181"/>
<area shape="poly" title=" " alt="" coords="141,105,198,143,195,148,138,109"/>
<area shape="rect" title=" " alt="" coords="16,229,70,256"/>
<area shape="poly" title=" " alt="" coords="111,184,70,221,66,217,107,180"/>
<area shape="rect" title=" " alt="" coords="94,229,152,256"/>
<area shape="poly" title=" " alt="" coords="126,182,126,214,120,214,120,182"/>
<area shape="rect" title=" " alt="" coords="175,229,250,256"/>
<area shape="poly" title=" " alt="" coords="140,180,187,217,184,221,137,184"/>
</map>
</div>
</div>
<p><a href="../../dc/d64/sys__var_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a62b7c132422d3fb4e67d6a0fb2b3d28f" id="r_a62b7c132422d3fb4e67d6a0fb2b3d28f"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="../../d8/d4a/class_c_sys_var.html">CSysVar</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a62b7c132422d3fb4e67d6a0fb2b3d28f">GetOrCreateSysVar</a> (const std::string &amp;file)</td></tr>
<tr class="separator:a62b7c132422d3fb4e67d6a0fb2b3d28f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6855353a92d0d6c3123e1444a50cc17" id="r_ae6855353a92d0d6c3123e1444a50cc17"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="../../d8/d4a/class_c_sys_var.html">CSysVar</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae6855353a92d0d6c3123e1444a50cc17">GetOrCreateSysVar</a> ()</td></tr>
<tr class="separator:ae6855353a92d0d6c3123e1444a50cc17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02462aa05c6a1e70d21a38c511a4cacc" id="r_a02462aa05c6a1e70d21a38c511a4cacc"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a02462aa05c6a1e70d21a38c511a4cacc">getOrCreateConfCtx</a> (const char *path)</td></tr>
<tr class="memdesc:a02462aa05c6a1e70d21a38c511a4cacc"><td class="mdescLeft">&#160;</td><td class="mdescRight">讀取配置文件的接口。  <br /></td></tr>
<tr class="separator:a02462aa05c6a1e70d21a38c511a4cacc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25389d032f4c2dbcab74c1133b5dff14" id="r_a25389d032f4c2dbcab74c1133b5dff14"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a25389d032f4c2dbcab74c1133b5dff14">getConfBool</a> (void *ctx, const char *path)</td></tr>
<tr class="separator:a25389d032f4c2dbcab74c1133b5dff14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab26d1a7e0a6f4c102e11178d157472cb" id="r_ab26d1a7e0a6f4c102e11178d157472cb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab26d1a7e0a6f4c102e11178d157472cb">getConfStr</a> (void *ctx, const char *path, char *data)</td></tr>
<tr class="separator:ab26d1a7e0a6f4c102e11178d157472cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:adefaa3c2adc01404ac76463c2b31412b" id="r_adefaa3c2adc01404ac76463c2b31412b"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, std::shared_ptr&lt; <a class="el" href="../../d8/d4a/class_c_sys_var.html">CSysVar</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adefaa3c2adc01404ac76463c2b31412b">globe_conf_file</a></td></tr>
<tr class="separator:adefaa3c2adc01404ac76463c2b31412b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a25389d032f4c2dbcab74c1133b5dff14" name="a25389d032f4c2dbcab74c1133b5dff14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25389d032f4c2dbcab74c1133b5dff14">&#9670;&#160;</a></span>getConfBool()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool getConfBool </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>ctx</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>path</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html">sys_var.cpp</a> 第 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html#l00048">48</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d64/sys__var_8cpp_a25389d032f4c2dbcab74c1133b5dff14_cgraph.png" border="0" usemap="#adc/d64/sys__var_8cpp_a25389d032f4c2dbcab74c1133b5dff14_cgraph" alt=""/></div>
<map name="adc/d64/sys__var_8cpp_a25389d032f4c2dbcab74c1133b5dff14_cgraph" id="adc/d64/sys__var_8cpp_a25389d032f4c2dbcab74c1133b5dff14_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,99,32"/>
<area shape="rect" href="../../dd/d8c/class_c_conf_file.html#a9f1bc5dcc44a0058e9a07fcb5d200fbc" title="获取变量数据" alt="" coords="147,5,288,32"/>
<area shape="poly" title=" " alt="" coords="99,16,131,16,131,21,99,21"/>
</map>
</div>

</div>
</div>
<a id="ab26d1a7e0a6f4c102e11178d157472cb" name="ab26d1a7e0a6f4c102e11178d157472cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab26d1a7e0a6f4c102e11178d157472cb">&#9670;&#160;</a></span>getConfStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void getConfStr </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>ctx</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>path</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html">sys_var.cpp</a> 第 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html#l00060">60</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d64/sys__var_8cpp_ab26d1a7e0a6f4c102e11178d157472cb_cgraph.png" border="0" usemap="#adc/d64/sys__var_8cpp_ab26d1a7e0a6f4c102e11178d157472cb_cgraph" alt=""/></div>
<map name="adc/d64/sys__var_8cpp_ab26d1a7e0a6f4c102e11178d157472cb_cgraph" id="adc/d64/sys__var_8cpp_ab26d1a7e0a6f4c102e11178d157472cb_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,90,32"/>
<area shape="rect" href="../../dd/d8c/class_c_conf_file.html#a9f1bc5dcc44a0058e9a07fcb5d200fbc" title="获取变量数据" alt="" coords="138,5,279,32"/>
<area shape="poly" title=" " alt="" coords="90,16,122,16,122,21,90,21"/>
</map>
</div>

</div>
</div>
<a id="a02462aa05c6a1e70d21a38c511a4cacc" name="a02462aa05c6a1e70d21a38c511a4cacc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02462aa05c6a1e70d21a38c511a4cacc">&#9670;&#160;</a></span>getOrCreateConfCtx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * getOrCreateConfCtx </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>path</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>讀取配置文件的接口。 </p>
<dl class="section return"><dt>返回</dt><dd>返回配置文件接口的ctx </dd></dl>

<p class="definition">在文件 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html">sys_var.cpp</a> 第 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html#l00038">38</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d64/sys__var_8cpp_a02462aa05c6a1e70d21a38c511a4cacc_cgraph.png" border="0" usemap="#adc/d64/sys__var_8cpp_a02462aa05c6a1e70d21a38c511a4cacc_cgraph" alt=""/></div>
<map name="adc/d64/sys__var_8cpp_a02462aa05c6a1e70d21a38c511a4cacc_cgraph" id="adc/d64/sys__var_8cpp_a02462aa05c6a1e70d21a38c511a4cacc_cgraph">
<area shape="rect" title="讀取配置文件的接口。" alt="" coords="5,5,147,32"/>
<area shape="rect" href="../../dc/d64/sys__var_8cpp.html#ae6855353a92d0d6c3123e1444a50cc17" title=" " alt="" coords="195,5,332,32"/>
<area shape="poly" title=" " alt="" coords="147,16,179,16,179,21,147,21"/>
</map>
</div>

</div>
</div>
<a id="ae6855353a92d0d6c3123e1444a50cc17" name="ae6855353a92d0d6c3123e1444a50cc17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6855353a92d0d6c3123e1444a50cc17">&#9670;&#160;</a></span>GetOrCreateSysVar() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d8/d4a/class_c_sys_var.html">CSysVar</a> &gt; GetOrCreateSysVar </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html">sys_var.cpp</a> 第 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html#l00025">25</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d64/sys__var_8cpp_ae6855353a92d0d6c3123e1444a50cc17_icgraph.png" border="0" usemap="#adc/d64/sys__var_8cpp_ae6855353a92d0d6c3123e1444a50cc17_icgraph" alt=""/></div>
<map name="adc/d64/sys__var_8cpp_ae6855353a92d0d6c3123e1444a50cc17_icgraph" id="adc/d64/sys__var_8cpp_ae6855353a92d0d6c3123e1444a50cc17_icgraph">
<area shape="rect" title=" " alt="" coords="227,56,364,83"/>
<area shape="rect" href="../../db/d0b/classwheels_1_1ali_o_s_s.html#a0436dadf8e1163df16c1753bc278ba24" title="这个函数会从配置文件中读取介个配置参数。其他相关参数采用SDK默认值" alt="" coords="12,5,172,32"/>
<area shape="poly" title=" " alt="" coords="223,54,148,35,149,30,225,49"/>
<area shape="rect" href="../../dc/d64/sys__var_8cpp.html#a02462aa05c6a1e70d21a38c511a4cacc" title="讀取配置文件的接口。" alt="" coords="21,56,163,83"/>
<area shape="poly" title=" " alt="" coords="211,72,163,72,163,67,211,67"/>
<area shape="rect" href="../../df/d42/classss_status_bar.html#ac405576ec6f94574fc90add9f889e9ba" title=" " alt="" coords="5,107,179,133"/>
<area shape="poly" title=" " alt="" coords="225,90,149,109,148,103,223,84"/>
</map>
</div>

</div>
</div>
<a id="a62b7c132422d3fb4e67d6a0fb2b3d28f" name="a62b7c132422d3fb4e67d6a0fb2b3d28f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62b7c132422d3fb4e67d6a0fb2b3d28f">&#9670;&#160;</a></span>GetOrCreateSysVar() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="../../d8/d4a/class_c_sys_var.html">CSysVar</a> &gt; GetOrCreateSysVar </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>file</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html">sys_var.cpp</a> 第 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html#l00013">13</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="adefaa3c2adc01404ac76463c2b31412b" name="adefaa3c2adc01404ac76463c2b31412b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adefaa3c2adc01404ac76463c2b31412b">&#9670;&#160;</a></span>globe_conf_file</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::map&lt; std::string , std::shared_ptr&lt;<a class="el" href="../../d8/d4a/class_c_sys_var.html">CSysVar</a>&gt; &gt; globe_conf_file</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html">sys_var.cpp</a> 第 <a class="el" href="../../dc/d64/sys__var_8cpp_source.html#l00011">11</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
